project(plasma-engine-salatinoid)

find_package(KDE4 REQUIRED)
include(KDE4Defaults)

include_directories(
	${CMAKE_SOURCE_DIR}
	${CMAKE_SOURCE_DIR}
	${salatinoid_engine_SRCS}/itl
	${CMAKE_BINARY_DIR}
	${KDE4_INCLUDES}
)
   
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

set(salatinoid_engine_SRCS
	plasma-engine-salatinoid.cpp
	itl/prayer.c
	itl/astro.c
)

kde4_add_plugin(plasma_engine_salatinoid ${salatinoid_engine_SRCS})
target_link_libraries(plasma_engine_salatinoid ${KDE4_KDECORE_LIBS} plasma)

install(TARGETS plasma_engine_salatinoid DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-dataengine-salatinoid.desktop DESTINATION ${SERVICES_INSTALL_DIR} )